# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=glacier-calc
pkgver=0.3.2
pkgrel=1
pkgdesc="The Glacier calculator"
url="https://github.com/nemomobile-ux/glacier-calc"
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
license="BSD-3-Clause"
depends="qtquickcontrols-nemo"
makedepends="
	cmake
	libglacierapp-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qttools-dev
	samurai
	"
source="https://github.com/nemomobile-ux/glacier-calc/archive/$pkgver/glacier-calc-$pkgver.tar.gz"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
6ecc6543adb3cdec05fec41266b4a2787fa0ddd136cbc71a82c629f7575abeaa11db3abe53999ef0bfa1d9277f5b4e9d86c2c890ad14cd3ac7f8cd3b9fee8062  glacier-calc-0.3.2.tar.gz
"
